﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using OpenNETCF.IoC;
using OpenNETCF.Bookshare.Services;

namespace OpenNETCF.Bookshare.Infracstructure
{
    public class Module : ModuleInit
    {
        public override void Load()
        {
        }

        public override void AddServices()
        {
            RootWorkItem.Services.AddNew<DataService, IDataService>();
            var l = RootWorkItem.Services.AddNew<LibraryService, ILibraryService>();

            l.LookupByISBN("9780596159771");
            l.LookupByAuthor("Seuss");
        }
    }
}
